<?php

namespace App\Modules\GrpcApi\Request;

use App\Common\BaseRequest;

/**
 * @property string start_station
 * @property string end_station
 * @property string city
 */
class GetBusLineRequest extends BaseRequest
{
    public function rules(): array
    {
        return [
            'start_station' => ['required'],
            'end_station' => ['required'],
            'city' => ['required'],
        ];
    }

    public function messages(): array
    {
        return [
            'start_station.required' => '起始站不能为空',
            'end_station.required' => '终点站不能为空',
            'city.required' => '城市不能为空',
        ];
    }
}